<form class="layui-form">
  <input type="hidden" name="id" value="<{$info['id']}>">
  <div class="layui-form-item">
    <label class="layui-form-label">套餐标题</label>
    <div class="layui-input-block">
      <input type="text" name="title" lay-verify="required" placeholder="请输入套餐标题" autocomplete="off" class="layui-input" value="<{$info['title']}>">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">套餐价格</label>
    <div class="layui-input-block">
      <input type="text" name="price" lay-verify="required" placeholder="请输入套餐价格" autocomplete="off" class="layui-input" value="<{$info['price']}>">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">选择产品</label>
    <div class="layui-input-block" id="goods">
      <{volist name='goods' id="v"}>
      <div id="div_<{$key}>" class="layui-row">
          <div class="layui-col-xs6" style="text-align:right;padding:10px;">
              <{$v}>
          </div>
          <input type="text" class="layui-input" style="display:inline;width:100px;"
          name="goods_ids[<{$key}>]" value="<{$goods_ids[$key]}>">
          <button class="layui-btn layui-btn-danger" onclick="del(this)">
              删除
          </button>
      </div>
      <{/volist}>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">开关</label>
    <div class="layui-input-block">
        <select name="status">
            <{volist name="status" id="v"}>
          <option value="<{$key}>" <{if $key==$info['status']}>selected<{/if}>><{$v}></option>
            <{/volist}>
        </select>
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="form">立即提交</button>
    </div>
  </div>
</form>
<{include file="goodspackage/glist" /}>
